package com.andreiamariei.tema6.entities;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

import com.andreiamariei.tema6.entities.commons.BaseEntity;

@Entity
@Table(name="Actors")
public class Actor extends BaseEntity{
	
	@Column(name="PRENUME")
	private String prenume;
	public String getPrenume() { return prenume; }
	public void setPrenume(String prenume) { this.prenume = prenume; }
	
	@Column(name="NUME")
	private String nume;
	public String getNume() { return nume; }
	public void setNume(String nume) { this.nume = nume; }
	
	@Column(name="BIRTH_DATE")
	private Date birthDate;
	public Date getBirthDate() { return birthDate; }
	public void setBirthDate(Date birthDate) { this.birthDate = birthDate; }
	
	@ManyToMany(mappedBy="actors")
	private List<Movie> movies;
	public List<Movie> getMovies() { return movies; }
	public void setMovies(List<Movie> movies) { this.movies = movies; }

}
